<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@taglib prefix="s" uri="/struts-tags"%>
    
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Day Code IDE</title>

<link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/ext-all.css" />
<!-- <link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/xtheme-gray.css" /> -->
<link rel="stylesheet" type="text/css" href="lib/extjs/ux/css/showMsg.css" />
<link rel="stylesheet" type="text/css" href="lib/extjs/ux/css/MultiSelect.css" />
<link rel="stylesheet" type="text/css" href="lib/extjs/ux/css/fileuploadfield.css" />

<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/icon.css" />

<script type="text/javascript" src="lib/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="lib/extjs/ext-all-debug.js"></script>
<script type="text/javascript" src="lib/extjs/src/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="lib/extjs/ux/showMsg.js"></script>
<script type="text/javascript" src="lib/extjs/ux/MultiSelect.js"></script>
<script type="text/javascript" src="lib/extjs/ux/ItemSelector.js"></script>
<script type="text/javascript" src="lib/extjs/ux/FileUploadField.js"></script>


<script type="text/javascript" src="lib/codepress/codepress.js"></script>
<script type="text/javascript" src="lib/codepress/Ext.ux.codepress.js"></script>
<script type="text/javascript" src="javascript/front/Ext.ux.cbutton.js"></script>
<script type="text/javascript" src="javascript/expand/Ext.ux.projectTree.js"></script>

<script type="text/javascript" src="javascript/common/init.js"></script>
<script type="text/javascript" src="javascript/common/commonAction.js"></script>
<script type="text/javascript" src="javascript/front/sys_menu.js"></script>
<script type="text/javascript" src="javascript/front/sys_toolbar.js"></script>
<script type="text/javascript" src="javascript/front/explorer_panel.js"></script>
<script type="text/javascript" src="javascript/front/editor_toolbar.js"></script>
<script type="text/javascript" src="javascript/front/undo_list.js"></script>
<script type="text/javascript" src="javascript/front/code_editor.js"></script>
<script type="text/javascript" src="javascript/front/homepage.js"></script>
<script type="text/javascript" src="javascript/front/editor_tabPanel.js"></script>
<script type="text/javascript" src="javascript/front/projectGrid.js"></script>
<script type="text/javascript" src="javascript/front/msg_tabPanel.js"></script>
<script type="text/javascript" src="javascript/front/viewport.js"></script>
<script type="text/javascript" src="javascript/front/newProject_win.js"></script>
<script type="text/javascript" src="javascript/front/create_class_win.js"></script>
<script type="text/javascript" src="javascript/front/renameFile_win.js"></script>
<script type="text/javascript" src="javascript/front/newFileOrFolder_win.js"></script>
<script type="text/javascript" src="javascript/front/uploadFile_win.js"></script>
<script type="text/javascript" src="javascript/common/sysAction.js"></script>
<script type="text/javascript" src="javascript/front/sys_manager_win.js"></script>
<script type="text/javascript" src="javascript/front/modify_password_win.js"></script>
<script type="text/javascript" src="javascript/front/modify_userInfo_win.js"></script>
<script type="text/javascript" src="javascript/front/create_site_win.js"></script>
<script type="text/javascript" src="javascript/front/checkout_project_win.js"></script>
<script type="text/javascript" src="javascript/front/import_project_win.js"></script>

<script type="text/javascript" language="javascript">
	function bindunbeforunload() {
	   window.onbeforeunload=perforresult;
	}
	function unbindunbeforunload() {
	    window.onbeforeunload=null;
	}
	function perforresult() {
	    return "Are you sure left this page?";
	}
</script>

<style type="text/css">
	#loading-mask{position:absolute;left:0;top:0;width:100%;height:100%;z-index:9200000;background-color:white;}
	#loading{position:absolute;left:45%;top:40%;padding:2px;z-index:9200001;height:auto;}
	#loading img{margin-botton:5px;}
	#loading .loading-indicator{background:white;color:#555;font-size:13px;padding:10px;margin:0px;text-align:center;height:auto}
</style>
</head>
<body id="body" onload="javascript:return bindunbeforunload();">
    <div id="loading-mask"></div>
    <div id="loading">
	    <div class="loading-indicator">
		    <img src='image/loading.gif' style="margin-right:8px;"/>Loading...
	    </div>
    </div>
    <div id="header">
        <div style="float:left; margin:5px;" class="x-small-editor">
            <span id="sys_menu">Day Code</span>
        </div>
    </div>
    <script type="text/javascript">
		setTimeout(function(){
			Ext.get('loading').remove();
			Ext.get('loading-mask').fadeOut({remove:true});
		},2000);
	</script>
</body>
</html>